import {
  SAVE_CATEGORYLIST
} from './constant'

const defatState = {
 categoryList:[]
}

export default function adminReducer(state = defatState, action) {
  switch (action.type) {
    case SAVE_CATEGORYLIST:
      return {
        ...state,
        categoryList: action.categoryList
        
      }
      default:
        return state
  }
}